namespace Chaotic.DataBase.DBAccessLibrary.Model;

[Serializable]
public class ProcEntity : ViewEntity
{
	public ProcEntity(string? name)
		: base(name)
	{
		base.ImageUrl = "/Images/Tree/proc.png";
	}

	public override DataBaseEntity? Copy()
	{
		ProcEntity? procEntity = new ProcEntity(base.Name);
		Copy(procEntity);
		if (base.ChildNodes.Count > 0)
		{
			foreach (DataBaseEntity? childNode in base.ChildNodes)
			{
				DataBaseEntity? dataBaseEntity = childNode.Copy();
				if (dataBaseEntity != null)
				{
					procEntity.ChildNodes.Add(childNode.Copy());
				}
			}
		}
		return procEntity;
	}
}
